package org.gd.hellojavacore.isd;

/**
 <pre>

 After execution, which statement is true?

 x[24] is null        (false)
 x[24] is undefined   (false)
 x[25] is 0           (false)
 x[0] is null         (false)
 x.length is 25       (true)

 </pre>
 */
public class Test2 {

    public static void main(String...str) {

        int[] x = new int[25];
        System.out.println("ClassName: " + x.getClass().getName());
        System.out.println("x[24]: " + x[24]);
        System.out.println("x[24]: " + x[24]);
        try {
            System.out.println("x[25]: " + x[25]);
        } catch (Exception e) {
            System.out.println("x[25]: " + e);
        }
        System.out.println(x[0]);
        System.out.println(x.length);

        System.out.println();
        Integer[] x1 = new Integer[25];
        System.out.println("ClassName: " + x1.getClass().getName());
        System.out.println(x1[24]);
        System.out.println(x1[24]);
        try {
            System.out.println("x1[25]: " + x1[25]);
        } catch (Exception e) {
            System.out.println("x1[25]: " + e);
        }
        System.out.println(x1[0]);
        System.out.println(x1.length);
    }
}
